﻿using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    public partial class UFWI02
    {
        public UFWI02()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;  
        }
        public void FilterMaster_Click(object sender, RoutedEventArgs e)
        {
            string filter = "ART LIKE '%" + txtART.Text.ToString().Trim() + "%' AND FARBE LIKE '" + txtFARBE.Text.Trim() + "%' AND ( SPPART LIKE '%" + txtSPPART.Text.ToString() + "%' OR FBPART LIKE '%" + txtSPPART.Text.ToString().Trim() + "%')";
            cvMaster.CustomFilter = filter;
        }

        public void FilterMasterClear_Click(object sender, RoutedEventArgs e)
        {

            cvMaster.CustomFilter = null;
        }
    
    }
}
